package nccloud.web.arap.amortization.action;

import java.util.Map;

import org.apache.commons.collections4.map.HashedMap;

import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import nc.itf.org.IAccountingBookQryService;
import nc.itf.pubapp.pub.smart.IBillQueryService;
import nc.vo.arap.amortization.AggAmortizationVO;
import nc.vo.org.AccountingBookVO;
import nc.vo.pub.BusinessException;
import nc.vo.pub.lang.UFDate;
import nc.vo.pub.lang.UFDouble;
import nccloud.framework.service.ServiceLocator;
import nccloud.framework.web.action.itf.ICommonAction;
import nccloud.framework.web.container.IRequest;
import nccloud.itf.arap.amortization.aggamortizationvo.IAmortizationvoService;

public class VerfyAction implements ICommonAction {

	@Override
	public Object doAction(IRequest request) { 
		String json = request.read();
		JsonParser parser = new JsonParser();
		JsonObject param = parser.parse(json).getAsJsonObject();
		String pk = param.get("pk").getAsString();
		 
		try {
			ServiceLocator.find(IAmortizationvoService.class).closeBill(pk, "");
		} catch (BusinessException e) { 
			e.printStackTrace();
		}
		return null;
	}

}
